Optimal. Leaf size=438 \[ \frac {\sqrt {a+b} \left (a^2-4 b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d}+\frac {\sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}{2 d}+\frac {a \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {a+b} (a+2 b) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b d}-\frac {(a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.92, antiderivative size = 438, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {2821, 3061, 3053, 2809, 2998, 2816, 2994} \[ \frac {\sqrt {a+b} \left (a^2-4 b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d}+\frac {\sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}{2 d}+\frac {a \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {a+b} (a+2 b) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b d}-\frac {(a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2809
Rule 2816
Rule 2821
Rule 2994
Rule 2998
Rule 3053
Rule 3061
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)} \, dx &=\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\int \frac {\frac {a b}{2}+b^2 \cos (c+d x)+\frac {1}{2} a b \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{2 b}\\ &=\frac {a \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\int \frac {-\frac {a^2 b}{2}+a b^2 \cos (c+d x)-\frac {1}{2} b \left (a^2-4 b^2\right ) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{4 b^2}\\ &=\frac {a \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\int \frac {-\frac {a^2 b}{2}+a b^2 \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{4 b^2}-\frac {\left (a^2-4 b^2\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx}{8 b}\\ &=\frac {\sqrt {a+b} \left (a^2-4 b^2\right ) \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^2 d}+\frac {a \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}-\frac {a^2 \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{8 b}+\frac {(a (a+2 b)) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{8 b}\\ &=-\frac {(a-b) \sqrt {a+b} \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b d}+\frac {\sqrt {a+b} (a+2 b) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b d}+\frac {\sqrt {a+b} \left (a^2-4 b^2\right ) \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^2 d}+\frac {a \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 17.59, size = 1152, normalized size = 2.63 \[ \frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {-\frac {12 a^2 \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{b-a}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{b-a}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-16 a b \left (\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{b-a}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{b-a}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{b-a}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{b-a}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )+2 a \left (\frac {i \cos \left (\frac {1}{2} (c+d x)\right ) \sqrt {a+b \cos (c+d x)} E\left (i \sinh ^{-1}\left (\frac {\sin \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\cos (c+d x)}}\right )|-\frac {2 a}{-a-b}\right ) \sec (c+d x)}{b \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \sqrt {\frac {(a+b \cos (c+d x)) \sec (c+d x)}{a+b}}}+\frac {2 a \left (\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{b-a}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{b-a}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{b-a}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{b-a}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )}{b}+\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{b \sqrt {\cos (c+d x)}}\right )}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 88.71, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {b \cos \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {3}{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.27, size = 1233, normalized size = 2.82 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \cos \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {a+b\,\cos \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \cos {\left (c + d x \right )}} \cos ^{\frac {3}{2}}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________